<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!--<link rel="stylesheet" href="bootstrap-3.3.7/dist/css/bootstrap.css">-->
    <title>响应式</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
        text-decoration: none;
        list-style: none;
        box-sizing: border-box;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -30px;
        margin-right: -30px;
    }
    
    .col {
        float: left;
        height: 100px;
        margin-top: 10px;
        margin-bottom: 10px;
        padding-left: 15px;
        padding-left: 15px;
        background-color: blue;
        background-clip: content-box;
    }
    
    @media screen and (min-width: 960px) and (max-width: 1600px) {
        .col {
            width: 25%;
        }
    }
    
    @media screen and (min-width: 480px) and (max-width: 960px) {
        .col {
            width: 50%;
        }
    }
    
    @media screen and (max-width: 480px) {
        .col {
            width: 100%;
        }
    }
</style>

<body>
    <div class="container">
        <div class="row">
            <div class="col col-xs-12 col-sm-6 col-md-3">内容1</div>
            <div class="col col-xs-12 col-sm-6 col-md-3">内容2</div>
            <div class="col col-xs-12 col-sm-6 col-md-3">内容3</div>
            <div class="col col-xs-12 col-sm-6 col-md-3">内容4</div>
        </div>
    </div>
</body>

</html>